home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / MacTCP / MacTCP Developer Tools / ZapTCP 1.1 / About ZapTCP next >
Encoding:
Text File  |  1994-11-21  |  1.6 KB  |  21 lines  |  [TEXT/ttxt]

  1. About ZapTCP
  2.  
  3. ZapTCP is a (very) small System Extension (INIT), which should be useful to people writing applications which use Apple's MacTCP.
  4.  
  5. As anyone who has written MacTCP programs knows, it is a long process involving the crashing and rebooting of the Mac about 20-30 times an hour (at least that's how it turns out for me).  To help my finger heal up (it was getting tired of hitting the reset key), I wrote ZapTCP.
  6.  
  7. The INIT works by installing a system-wide patch which takes control when an application quits (or is quit by a forced MacsBug "es").  When it runs, the code scans through all of the currently open MacTCP streams and connections, looking for those that have their stream buffers allocated within the heap that is about to disappear.  When ZapTCP finds a stream whose buffers are about to become no-man's land, it forces the connection closed and releases the stream, posting a notification to the user.
  8.  
  9. Since ZapTCP opens the MacTCP driver whenever an application quits, please don't run it if you don't have MacTCP or don't have MacTCP configured properly.  Doing so will almost certainly result in nasty crashes.
  10.  
  11. -Steve Falkenburg
  12.  MacDTS
  13.  
  14. -----------------------------------------------------------------------------
  15.  
  16. Changes since 1.0:
  17.  
  18. Version 1.1 (6/92  SJF)
  19. ----------------------
  20. ZapTCP used to assume that there were no holes in the list of connections returned by the MacTCP driver.  This was found to be incorrect, so that if an application opened up three connections and then closed the second one, only the first would be released by ZapTCP.  ZapTCP now searches all possible slots in the list for active streams.
  21.